added condition to GA statement