emulating semblance (inversecoma)