renamed event subscription function