Compensations in small divisor problems