changing access from public to private for the partition hash function