changed get() to slice()