removing unnecessary code from example app