added pause(); added tests