added logic for SPLIT