fixing globals