finished loop function initialization left