uncommented code related to mesh