refactor summary