prettify get_pattern_dist function