removed unnecessary statement
remove variables that are set but not used