note the debug method