corrected p_filename error