implemented global keyword