attempt to implement draw()