fixing reverts