better way to detect pause