add conditional entry in parts