resolves #964