remove unneeded references