removing uneeded code