fixed stupid typos and bugs