fixed a few stupid mistakes