modified format check, added regression test