changing optimistic locking to equal versions