correcting the application section to have the good code