perfromed quantile analysis + cleaned up code