update dial function