code to auto remove past events