added instruction to set AD