editing code style and checking for consistency