working version of application