use log replacing print