yeah thats because of the foreach that the ide does not see what it will get