save samples in view