modal extension