removed dead code
refactored splitArgumentsAtIndex