make script work for conditional designs