use log for check.