added old drawing code