updated associated R file