add function to minibuffer
fix typo