reduction on code