we're aware that we're creating functions in a loop