clean up ids