removed variable declared in wrong area