corrected return type

see issue #39