work done on processHTTP()