added temperature method and to view