begin a script to summarize path samples but it is not complete and its name will be changed