refactoring Prefix class
refactoring Format class