json getting correction
list iteration refactoring