fix indexing to use processOut values