add hash type attribute