add editing functions