added update endpoint