loop state key,value type added