get rid of dependent records