changing mistakes in code and style