added method uri_to_id