remove object allocation inside draw()