implemented response analisys to return better output