updated method of entering name