sample app modified