play with indices, fix bug with global CAS (now it's copied)