make where clause immutable