modified the application code