final without g2o