work around format attribute error