move arraydiff, because too app specific