enhenced function wh of CWhere