fixes line breaks, and removes additional comma