testing build function