changes styles and fixes errors