adjusted the edit command