Purify and elementalize
Change location
Array index should be INT64