partly completed app, need to debug