begin calculating temperature correctly