fixing a depreciated warning / fixing issue #25