add option to split samples