event function for mu3 detection