implemented wrong way of updating contacts