slice and reassign