https://paydarsamane.com/post/possum-algorithm