validate max operations