modify rey file