fixed  access globals