added global variables declaration