added hash sample(