simple implementation of issue #76. closes #76