restyle code