TFORLOOP fix
Sys func reorg