slice refactoring