check for non exisiting ids