rewrite modals