updated debugging