compensating for temperature variations