make this compile correctly where formats produce errors