deal the length problem!