can input an array to compare for equality