adds CRUD for updates
add code that fixes errors