before change styles