using eprint instead of fputs