update source and style