deleted unused variables in statement method