perfected pausing
fixed bug