implement draw function simply