agency declared as global variable