remove undeclared function/ old code to fix issue #37