updated for build mesh