modify nested if
modify func display_path