go through each row in the result