changed where clause syntax