getTmpList using in for each for correct results