added build utility function