remove unneccessary lines