add square hashcode