iterate over refresh query attributes properly