Refactor.
remove unused.