corrected snippet meca_statique