update and delete methods are now working