little changed to CUI. removed doubles sysout