updated the loop, fixed info issue