modified the slice calls