removing uneeded parameters