end of refactoring of plasmoid