format update and debugging done