main edit