enable length check