computing an array diff, not using it just yet