added rest call on submitSample