fix bug and added name to hash