changed fprintf(stderr... to print_error