added unwait function