misuse of the splice method