added formatting method