add ability to execute functions on rows while iterating