refactored palsAll for better event management and readablility