refactor makeGetTempDouble