added autorotation