simplification: getValues only needs an 'if'