define itemModel before updating relationships