[IMP]: add condtion for check dict in pad.py