mistype functionality finalized