changed main to draw