trying to figure out why line 131 does not do what I think it does