updated for vec renamed to slice