remove unnecessary variable declaration