use log mask