added editing functions