that can be avoided if we use the hash instead of the array