changed to local variable