indexing argument length check