error on format function