modifying to print to stderr