use ok in hash