testing the edit function