comparing leah's code