don't use deprecated method (Issue #33)