sped things up switching from maps to slices