adding to build function