removing unneeded parts