refactored and adding led animator