implementi reduce, any and all functions