fixed issue #13 by adding to constructor