Don't define functions inside of a looppp!