updating fig5_keramati.py