have some problem about maxchar to display