refactored and fixed problems with advanced to the next step at the first time in the lesson