manipulate drawing by main