fixed script to only print fragLength