update setIOStyle function