first check length