added where clause to grid