adding max len changes