preparing shading feature detector