removed save() function in functions.js