fix stupid mistakes by Brian