improve reducer helpers