adding active and hashcode
adding active var