second version of app working