cleaning up _ids