use hash instead of array with page