A new approach for the existence of time periodic solutions of special classes of nonlinear problems