changed SQL statement