reduces document