Removed to_lin_red. Changed conditions.
__ into .