updated common code style