add _buildWhere internal