working on delay implementation