Remove the extra lines that are not needed