formatdata2.sh complete