add splice and update documentation