added hash magic