adds id to lists