replaced new with edit