replace arrays to my type
enable to remove all listeners of one type