added foreachrowreverse snippet