use eigen's .value() to increase code clarity