just some cleanup on the PLY export method