fixed bugs and snakes.