get proper revision