edit cleanup