adding max params rule