closes issue #5