refactor reponse message