merge update app function