create editing functions