change fprintf to printf