functions edits