add debug unit and modified many unit