removed the logging R function