fixed the format blotter function