file output tested. works.