reduce uses flags