add code to save new entry