remove debug, change slicing