added print_debug