fix indexing :)