remove non-required output and fix code style