fix to S3 method