working version of solarPolygenic