feature added to remove midi events