corrected a bunch of mistakes