added a print_r to debug