everything at its place

Here is the final code but only a warning with metis objval