Removing unnecessary variable