testing for length