refactor medialist