Small slide 5 refactor