phone number logic fixed