editing datehash loop