make mostCommon function