might need to change from array of arrays to an array of objects