remove variable and fix warning

remove variable and fix warning