fixed var app with app to make it global