cint
restructuring and simplyfying