added active to conditions. checks if det name in det list