added endpoint for updating