moved function to solGS.js..