remove unnecessary event registration