refactoring formatID
add formatID unit test
add type test
refactoring utility