update method to draw