to handle read name