switch to integer arrays for data