completed according to code style