removed wrong handeling of error in respose