add a calc_hash program to reference