fix some bug and add split example