remodeled temp.py