moved S3 variables