updating for restful web service