add and update methods are working