fix for issue #42

Addresses issue #42