removing uneeded variables