move plorring of GA to its own function