fixed an inefficiency in pocket mode