removing unneeded parts in script