corrected GA script