commented out loop func