replace deprecated method; closes #1082