fixed deadcode for assign