Consider using associative access on f1 and f2 further down. The order is not guaranteed.