added pause for input