removing uncessary lines of code in other pieces of code