maxlen methon deprecated