switch to array format