resolve some issues with setSyles function