add reduce to compatibility