changed submitSample to own rest call