custom-made reducer