Unnecessary variable deleted