Got rid of an unnecessary variable