encoding and location hash