better handling of iterated binary operations