pause function added - use with P