fixed function export (@export instead of @S3method)