added debug.h, forgot to before