implemented all motions