worked out problem with updateStyle