added layer.temperature function