added splitByType function