figured out half of the problem, attributes are updated, but somehow the insert still happens afterward