added rotation matrix