corrected S3 variable