change writefie() position