Changed hashcode method