format procedure