minor refactoring and added another failing example in 26th frame