simplifying factories