add splice method