saving value of f_pos successfully