fixes #4.  Just following Victor's excellent advice.