simplify code in BuilderHelper