save updated attributes earlier?