everything works out in the endfor