add the hash delegate code