code simplification
hashes paging