edited to allow analysis of multiple samples