fix for deprecated method, resolves #6