helper scripts for formatting dataset