function of pause.