added cursor movement and inserting patterns