using new library of slicetricks