The logic of your new code is correct, but it looks like you removed some of the variables that were already there? text and shift seem to be gone from your code.
Please open a new topic, it’s too complicated to answer many people’s questions in 1 thread, even if it’s the same step:
If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.
The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.