drawing code added