corrected the modals