custom geometry build function error