use slice ref
Merge pull request #7 from viatropos/patch-1

use slice ref