changed type of ADDR to uint16