layer mesh after code review