chaning the data structure of Revision