fix for issue 50

this will close #50