add some functions to add samples