implemented global declarations