add save version data funciton