add max length limitation back