solves issue #4

fixes #4