using array references everywhere else, use one for values too