better fix for public hash