HAMA-770: add identity function