Removing end1 and using \n

using \n insted of end1