edit code style and remove sample.