added validation of collections