[mod] refactor