changed sample processing