adding slicing and dicing functionality