pocket detector added