removed unnecessary code from plugin