added _debug variable