add cases for edit operation