added smallest value function
added phone function