added reference var to new hook
Merge pull request #61 from pavemen/feature

added reference var to new hook