correcting issue #46