altered header to allow g