added max cons sequence problem