corrected looping error in hashCode and equals