validating arguments for indexer