Unnecessary variable removed