upgrade functions.R