capture samples for trainning