split and scan