adding the right ids