draw loop updated