this fixes and closes issue #3