done in beforeFind