fixed issue #13 - paretheses around typeof