improve usage function in parity