remove definition of unnecessary variable