Gap distribution csv and code