implemented ~ except for ~.q