return path for rotate and merge