added rotated snippet