The present invention discloses a capsule endoscope and a method to prevent the capsule from being covered by a residue or mucous in a patient's digestive tract. The capsule endoscope comprises an improved surface, preventing a residue or mucous to adhere onto the surface of the capsule, and in the unlikely event that a residue or a mucous is collected by the capsule the improved surface can allow an easy and successful clean before an image is taken.