added split code