moving function definition so it gets declared only once
Merge pull request #27 from surreal8/master

moving function definition so it gets declared only once