added where() and whereFirst() methods