notes on reducing though array of functions