moves index to secret