improve hash creation a little