fixes Gary's issue in #62