append where clause