added elog function