removed unnecessary variable that was used in older code