updated sampleapp