rotation did not work if any of angles was 0., fixed now.