fixing results processing