added new build function