dotimes and for should be working