Added override to where and allWhere methods