temperature can be computed with single subroutine call