implement hash word