filled in mouseDragged() method