updated app code