remove extraneous ids