sample rotation added