cleanup and one function added to tputil (most_common)