add setHash function to interface