fixed some debug code so it compiles now