update app.c