allow builder in constructor to function