get rid of old drawing code