save node function done