improve format error