added format_fgets declration