trying to fix key/data duplicate problem