fixed faormat to code 2