some more work on mvp algorithm