removed an unnecessary variable