checking length.