only update style when one is found