corrected bugs from typos