add newlines to ref