added \n before EOF