these 3 lines are the key changes