only log if necessary