optimistic locking added to materials