added print statement to slices