modified function ga script