remove event functionality