when you are appending the builder variable, i notice you only apend the "\n" newline and nothing else. You need to append the record to the builder variable:
i.ei....