implemented accumMWith