parse_filename renew code (need to be checked)