added checks to mesh