add audio and timedelay function