using atlas automatic build, rewrited code to implement rotation action