deleting weird lines at the end