added fwlite pattuple loop