beginning of a reducer