add function for operator reg loger