detail results returning correctly - couldn't use foreach()

removed comments