create save method
update to fix variable typos