simplifying build code