add max path problems