adapting code style