added refactor doc