a few commonly used slice operations
use commonly defined slice operation