refact respone