added global functions file