temporary move step() to draw loop