insert and print cursively working