only generate extra id when double is found