INTEGRATING RENEWABLE ENERGY SOURCES INTO GRIDS