improve the update/save service codes