added to draw loop