remove unnecessary variable declare