fixed a few small mistakes