make sure to handle only the right events