fixed the meshes[] vs mesh[] problem (which is what was causing the rotation error)