reworked how frames are added in the player