moved block scope
edited up to global scope
edited upto local scope