updated to allow edits