detection of the cylinder