fixed sub function1
Merge pull request #1 from elmar/master

fixed sub function1