removing unnecessary variable