reduce nest expression