got the draw function working.