modify theme build function