looping functions commenting out