adding a nice debug method