moved draw boilerplate into mesh