debug and code style