updated method for obtaining revision.