working on clear for plugin