started draw function