#factory documentation