adding max_len action