Update dai.cpp