add method to print debug information