make object hashable