update added checking for phone number and contact id