change printf to strerr in error.c