improved the slipt function and tested