simplify version code