redo of sample_app