introduce big loop on samples