removed draw function