fixed bug and default format