pocket detect