eliminate unnecessary variable