refactored ApplyStyle Operation