replace deprecated @S3Method