fixed indexing mistakes!