updated the way the  variable is passed to application.