latest edit and add functions