development of quality-layer extraction