adding a build function