fixed casting issue, still experimenting with setting slices