processing samples