hash is defined 2 times