bin script to prepare dataset