fixed redundant call to getValue()