Canonical map of low codimensional subvarieties