texas hash (slightly adapted)