call draw from the loop