resolving issue #4