update source, change codestyle