replace deprecated method; closes #816