fixed revision calculation