added global DEBUG variable