difference between dotimes and for