fixing issue #12

resolving #12