updated the app sample