removed dead variables and code