fix silly c++ issue - closes #7