why not use foreach?