optimize

* remove useless method `setInstanceId`.
* optimize `increment`