delete some necessary lines