Add private function addwhere();