dont create functions within loops, we can avoid for loops altogether