works v3, wrong indeces