updated the application code