implement collection validation