moved the draw function to