try to match RD coding style