renamed some results variables for clarity