fixed this and other instances of the same mistake