remove factory and use array() instead of []