removed a lot of drawing code no longer in use