removed print_r that was causing the error