write version to header file