new version with with 64bit indices