adding support for slicing