added pause callback