slice is inclusive; update similar services function
Merge branch 'master' into ios