restyles code