fixed a few mistakes