autocomplete and fixed the newlines